package com.hotel.customersystem.pojo;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * (CustomerUser)表实体类
 *
 * @author makejava
 * @since 2022-09-30 16:33:31
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "customer_user")
public class CustomerUser {
    //用户id
    @TableId
    private Integer userId;
    //昵称
    private String userNickName;
    //密码
    private String userPasssword;
    //手机号
    private String userPhone;
    //出生日期
    private LocalDateTime birthday;
    //性别
    private String sex;
    //邮箱
    private String email;
    //地址
    private String address;
    //行锁
    private Integer version;
    //状态
    private Integer state;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    // 账号
    private String standby01;
    // 头像路径
    private String standby02;

}

